* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.my-layout {
    display: flex;
    min-height: 100vh;
}

/* 左侧导航栏样式 */
.my-sidebar {
    width: 280px;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-user {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #e8f4ff;
    background-color: #f0f0f0;
}

.sidebar-username {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item i {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
}

.menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.menu-title::after {
    content: "›";
    font-size: 18px;
    transition: transform 0.3s;
    color: #666;
}

.menu-title.active::after {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.submenu.open {
    max-height: 200px;
}

.submenu .menu-item {
    padding: 12px 20px 12px 52px;
    font-size: 14px;
    color: #666;
}

.submenu .menu-item:hover {
    background-color: #e9ecef;
    color: #333;
}

.logout {
    color: #dc3545 !important;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

/* 主内容区域样式 - 统一容器 */
.my-main {
    flex: 1;
    padding: 30px;
    min-width: 0;
}

/* 统一的主容器 */
.main-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: calc(100vh - 60px);
}

/* 用户资料区域 */
.profile-section {
    padding: 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.avatar {
    margin-right: 25px;
}

.main-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #e8f4ff;
    background-color: #f0f0f0;
}

.user-info {
    flex: 1;
}

.main-username {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.user-stats {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.user-stats span {
    margin-right: 25px;
}

.edit-btn {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
}

.edit-btn:hover {
    background-color: #555;
}

/* 标签导航区域 */
.tabs-section {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 30px;
}

.tab {
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
}

.tab:hover {
    color: #333;
}

.tab.active {
    color: #333;
    font-weight: bold;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffd100;
}

/* 内容区域 */
.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    color: #999;
    min-height: 400px;
}

.content-section img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-text {
    font-size: 16px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .my-layout {
        flex-direction: column;
    }
    
    .my-sidebar {
        width: 100%;
        height: auto;
    }
    
    .my-main {
        padding: 20px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .user-stats {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .main-container {
        min-height: auto;
    }
}